<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
  <div align="center">
    <form action="updateUserName" th:object="${UserB}" method="post">
         <div>
          <input type="hidden" name="userid" th:value="${UserB.userid}"/>
            &nbsp;&nbsp;&nbsp;&nbsp;UserId:<span th:text="${UserB.userid}"></span>
           </div>
            <div>&nbsp;&nbsp;UserName:<input name="username" type="text" th:value="${UserB.username}"/>
            </div>
            <div>&nbsp;&nbsp;Password:<input name="password" type="password" th:value="${UserB.password}"/>
            </div>
            <div>rePassword:<input name="repassword" type="password" th:value="${UserB.password}"/>
            </div>
            <div><button type="submit" name="update">update</button>
            <span th:text="${message}" style="display:inline;color:red;"></span>
            </div>
     </form>
  </div>
</body>
</html>